package com.ctshk.rpc.user.service;

import com.ctshk.common.dto.Result;
import com.ctshk.common.model.PageResponse;
import com.ctshk.rpc.user.dto.PassengerDTO;
import com.ctshk.rpc.user.dto.UserReceivingAddressDTO;
import com.ctshk.rpc.user.dto.UserReceivingAddressListDTO;
import com.ctshk.rpc.user.req.UserReceivingAddressPageReq;
import com.ctshk.rpc.user.req.UserReceivingAddressReq;

/**
 * <p>
 *  用户收货地址接口
 * </p>
 *
 * @author 李新科
 * @date 2021/5/17 20:45
 */
public interface IUserReceivingAddressService {
    Result<PageResponse<UserReceivingAddressListDTO>> queryPage(UserReceivingAddressPageReq req);

    Result add(UserReceivingAddressReq req);

    Result delete(Long id, Long userId);

    Result<UserReceivingAddressDTO> detail(Long id, Long userId);

    Result update(UserReceivingAddressReq req);

    Result setDefaultAddress(Long id, Long userId,Integer isDefault);
}
